package com.guguskins.back.mapper;

import com.guguskins.back.entity.GuDisCountOrUser;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 用户表和折扣券关联表 Mapper 接口
 * </p>
 *
 * @author mybatis-plus
 * @since 2021-07-14
 */
public interface GuDisCountOrUserMapper extends BaseMapper<GuDisCountOrUser> {
    List<GuDisCountOrUser> findByDIdOrUserId(Integer userId, Integer duIsUse);
    GuDisCountOrUser findByDisCount(String counponCode);
    List<GuDisCountOrUser>findBypage(@Param("pageNum")int pageNum,@Param("pageSize") int pageSize,@Param("userName")String userName,
    @Param("disCountName") String disCountName,@Param("discountState") String discountState);
    long findByCount();
}
